package com.wdf.controller;

import com.wdf.service.RocketMQProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wdf
 * @create 2019-05-24 15:05
 **/
@RestController
public class TestMQ {
    @Autowired
    RocketMQProvider rocketMQProvider;
    @RequestMapping("/testMQ")
    public String testMq() {
        boolean result = rocketMQProvider.send("demo", "TAG-A", "Hello RocketMQ");
        return null;
    }

}
